package com.lin.cms.common.upload;

import java.io.File;
import java.io.IOException;

import org.springframework.web.multipart.MultipartFile;

/**
 * 本地文件存储
 * 
 * @author luanzelin
 * 
 */
public interface FileRepository  {

	public String storeByExt(String path, String ext, MultipartFile file) throws IOException;

	public String storeByFilename(String filename, MultipartFile file) throws IOException;

	public String storeByExt(String path, String ext, File file) throws IOException;

	public String storeByFilename(String filename, File file) throws IOException ;

	public File retrieve(String name);

}
